import fetch from '@/config/fetch'

// 首页统计
export const getHomeStatistic = data => fetch('/reports/index_stats', data, 'POST');
// 应收应付
export const getHomeData = data => fetch('/reports/index_index_stats', data, 'POST');
// 常用功能
export const getHomeMenus = data => fetch('/menu/corp_index_menu_view', data, 'POST');
// 全部功能
export const getHomeAllMenus = data => fetch('/menu/index_menu_view', data, 'POST');
// 添加菜单
export const addHomeMenu = data => fetch('/menu/corp_index_menu_add', data, 'POST');
// 移除菜单
export const delHomeMenu = data => fetch('/menu/corp_index_menu_del', data, 'POST');
// 菜单排序
export const sortHomeMenu = data => fetch('/menu/corp_index_sort_update', data, 'POST');
// 待办列表
export const getTodoList = data => fetch('/todo/list?page=1&num=5', data, 'POST');